package com.tjbank.cssys.web.service;

import com.github.pagehelper.PageInfo;
import com.tjbank.cssys.domain.CkLog;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * 日志 的dao接口
 *
 */
public interface CkLogService {
    /**
     *  查询列表，返回值包含大字段栏位
     *
     * @return
     * @throws Exception
     */
    PageInfo selectList(Integer page , Integer pageSize , CkLog ckLog, HttpServletRequest request);

    /**
     * 单条插入新增记录
     *
     * @param ckLog
     * @return
     * @throws Exception
     */
    public boolean  addInsert(CkLog ckLog) throws RuntimeException;

    /**
     * 批量插入新增记录
     *
     * @param listCkLog
     * @return
     * @throws Exception
     */
    public int insertUseBatch(List<CkLog> listCkLog) throws RuntimeException;

    /**
     * 根据主键删除记录
     *
     * @param LogId
     * @return
     * @throws Exception
     */
    public int deleteByPrimaryLogId(Integer LogId) throws RuntimeException;

    /**
     * 根据主键更新记录
     *
     * @param LogId
     * @return
     * @throws Exception
     */
    public int updateByPrimaryKeySelective(Integer LogId) throws RuntimeException;

    /**
     * 根据主键查询单个对象
     *
     * @param ckLog
     * @return
     * @throws Exception
     */
    public CkLog selectByPrimaryKey(CkLog ckLog) throws RuntimeException;
}
